package db4o;

import static db4o.DBUtils.getMaxIdOfDevice;

import java.util.Date;

import pojo.Device;
import pojo.EDeviceState;
import pojo.EDeviceType;
public class DeviceCreator extends DBManager {

	public void devicePersist(Device device) {
		super.getDbManager().store(device);
	}

	public void devicePersist(String desc, EDeviceType type) {
//		super.getDbManager().store(
//				new Device(getMaxIdOfDevice()+1, desc, type, EDeviceState.WAITING, new Date()));
//		System.out.println("Store: "+new Device(getMaxIdOfDevice()+1, desc, type, EDeviceState.WAITING, new Date()));

	}
}
